package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechTaskInfo;
import com.appkubes.mall.core.po.FintechTaskInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechTaskInfoMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskInfoSqlProvider.class, method="countByExample")
    long countByExample(FintechTaskInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechTaskInfoSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechTaskInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_task_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_task_info (id, code, ",
        "`name`, bean_name, ",
        "method_name, params, ",
        "task_time, `status`, ",
        "create_time, update_time)",
        "values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, ",
        "#{name,jdbcType=VARCHAR}, #{beanName,jdbcType=VARCHAR}, ",
        "#{methodName,jdbcType=VARCHAR}, #{params,jdbcType=VARCHAR}, ",
        "#{taskTime,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechTaskInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechTaskInfoSqlProvider.class, method="insertSelective")
    int insertSelective(FintechTaskInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="task_time", property="taskTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechTaskInfo> selectByExampleWithRowbounds(FintechTaskInfoExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="task_time", property="taskTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechTaskInfo> selectByExample(FintechTaskInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "id, code, `name`, bean_name, method_name, params, task_time, `status`, create_time, ",
        "update_time",
        "from fintech_task_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="task_time", property="taskTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechTaskInfo selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskInfoSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechTaskInfo record, @Param("example") FintechTaskInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskInfoSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechTaskInfo record, @Param("example") FintechTaskInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskInfoSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechTaskInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_info
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_task_info",
        "set code = #{code,jdbcType=VARCHAR},",
          "`name` = #{name,jdbcType=VARCHAR},",
          "bean_name = #{beanName,jdbcType=VARCHAR},",
          "method_name = #{methodName,jdbcType=VARCHAR},",
          "params = #{params,jdbcType=VARCHAR},",
          "task_time = #{taskTime,jdbcType=VARCHAR},",
          "`status` = #{status,jdbcType=INTEGER},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechTaskInfo record);
}